package funtastic.spellingbee;

public class SpellingDetails
{
    private String  mSentense;
    private String  mSpelling;
    private String  mSpellingUser;
    private Boolean mVerified;

    public SpellingDetails(String spelling, String sentense)
    {
        mSentense = sentense;
        mSpelling = spelling;
        mSpellingUser = "";
        mVerified = false;
    }

    public String getSentense()
    {
        return mSentense;
    }

    public String getSpelling()
    {
        return mSpelling;
    }

    public String getSpellingUser()
    {
        return mSpellingUser;
    }

    public Boolean getVerified()
    {
        return mVerified;
    }

    public Boolean isCorrect()
    {
        return mSpelling.equals(mSpellingUser);
    }

    public void setSentense(String sentense)
    {
        mSentense = sentense;
    }

    public void setSpelling(String spelling)
    {
        mSpelling = spelling;
    }

    public void setSpellingUser(String spelling)
    {
        mVerified = mSpellingUser.equals(spelling) ? mVerified : false;
        mSpellingUser = spelling;
    }

    public void setVerified(Boolean verified)
    {
        mVerified = verified;
    }

    @Override
    public String toString()
    {
        return mSpelling;
    }
}
